/**
 * @Author Stringzhua
 * @Date 2024/1/14 10:29
 * description:强制数据类型转换
 */
public class ForceConvert {
    public static void main(String[] args) {
        int n1 = (int) 1.9;
        System.out.println("n1=" + n1);//造成精度损失

        int n2 = 2000;//127
        byte b1 = (byte) n2;
        System.out.println("b1=" + b1);//-48   数据溢出
    }
}
